import numpy as np

data1 = np.array([[1, 2, 3], [4, 5, 6]])
data2 = np.array([[-1, -4, 1], [7, 5, 2]])
print(data1 + data2)
print(data1-data2)
print(data1 * data2)
print(data1 / data2)

data3 = np.array([[1], [2], [3], [4]])
data4 = np.array([1, 2, 3])
print(data3 + data4)

data6 = np.array([[1, 3], [5, 4], [3, 4]])
data7 = np.array([5, 4])
print(data6 + data7)

data8 = np.array([[2, 8, 4], [3, 5, 7], [2, 4, 9]])
x = 7
print(data8 + x)
print(x - data8)
print(data8 * x)
print(x / data8)
